package com.maijinjie.common.bean;
/**
 * 执行结果bean
 * @author 王欣逸
 */
public class StatusBean<T> {
	/** 状态码 */
	private boolean isSuccess;
	/** 消息 */
	private String message;
	private T result;
	/**
	 * 构造状态BEAN
	 * @param isSuccess 是否成功
	 * @param message 消息
	 */
	public StatusBean(boolean isSuccess, String message){
		this.isSuccess = isSuccess;
		this.message = message;
	}
	/**
	 * 构造状态BEAN
	 * @param isSuccess 是否成功
	 * @param message 消息
	 */
	public StatusBean(boolean isSuccess, String message, T result){
		this.isSuccess = isSuccess;
		this.message = message;
		this.result = result;
	}
	public boolean isSuccess() {
		return isSuccess;
	}
	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public T getResult() {
		return result;
	}
	public void setResult(T result) {
		this.result = result;
	}
}
